package modele;

public class ModeleRelation 
{
	Relations typeRelation;
	ModeleClasse classeSource;
	ModeleClasse classeDest;
	Cardinalite cardSrc;
	Cardinalite cardDest;
	
	public ModeleRelation(Relations r, ModeleClasse source,ModeleClasse dest, Cardinalite cardSource,Cardinalite cardDest)
	{
		this.typeRelation = r;
		this.classeSource = source;
		this.classeDest = dest;
		this.cardSrc = cardSource;
		this.cardDest = cardDest;
	}

	public Relations getTypeRelation() {
		return typeRelation;
	}

	public void setTypeRelation(Relations relation) {
		this.typeRelation = relation;
	}

	public ModeleClasse getClasseSource() {
		return classeSource;
	}
	
	public ModeleClasse getClasseDest() {
		return classeDest;
	}

	public void setClasseSource(ModeleClasse src) {
		this.classeSource = src;
	}

	public void setClasseDest(ModeleClasse dest){
		this.classeDest = dest;
	}
	
	public Cardinalite getCardSrc() {
		return cardSrc;
	}
	
	public Cardinalite getCardDest() {
		return cardDest;
	}

	public void setCardSrc(Cardinalite card){
		this.cardSrc = card;
	}
	
	public void setCardDest(Cardinalite card){
		this.cardDest = card;
	}
}
